project(Test)
find_package(GTest CONFIG REQUIRED)

get_target_property(location_ Server SOURCE_DIR )

add_executable(Test-GroupService
#        ${location_}/GroupService.h
        ${location_}/GroupService.cc
        ${location_}/DataHandle.cc
        TestGroupService.cc
)

target_include_directories(Test-GroupService
        PRIVATE ${location_}
)

target_link_libraries(Test-GroupService
        PRIVATE Qt5::Core Qt5::Sql Qt5::Gui Qt5::Widgets
        PRIVATE ProtoTarget
        PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main
)


add_executable(Test-DataHandle
#    ${location_}/IDataHandle.h
#    ${location_}/DataHandle.h
    ${location_}/DataHandle.cc
        TestDataHandle.cc
)

target_include_directories(Test-DataHandle
        PRIVATE ${location_}
)

target_link_libraries(Test-DataHandle
        PRIVATE Qt5::Core Qt5::Sql Qt5::Gui Qt5::Widgets
        PRIVATE GTest::gtest GTest::gtest_main  #[[GTest::gmock GTest::gmock_main]]
)


